package com.apply.config.web;

import com.apply.entity.SysUser;

import java.util.Map;

/**
 * @author tianp
 */
public class SidAuthContext {
    private static final ThreadLocal<SysUser> SID_INFO = new ThreadLocal<>();

    public static SysUser get() {
        return SID_INFO.get();
    }

    public static void set(SysUser sysUser) {
        SID_INFO.set(sysUser);
    }

    public static void remove() {
        SID_INFO.remove();
    }
}
